// var bg = chrome.extension.getBackgroundPage();

function test() {
  alert(bg);
}

function main() {
  var div = document.createElement("div");
  var a = document.createElement("a");
  var text = document.createTextNode("Add to Chrome Quotes");
  
  div.style.position = "absolute";
  div.style.top = "0";
  div.style.right = "0";
  a.href = "javascript:test()";
  
  document.body.appendChild(div);
  div.appendChild(a);
  a.appendChild(text);
}

main();